import axios from 'axios';

axios.defaults.baseURL = '';

// 请求拦截
axios.interceptors.request.use((config) => {
  config.headers['Set-Cookie'] = 'SameSite=None; Secure';
  return config;
}, error => Promise.reject(error));
// 响应拦截
axios.interceptors.response.use(({ data }) => data, error => Promise.reject(error));

export default axios;
